import instance from "./axiosinstance"

export function reqLogin(username, password) {
  return instance.post("/login", { username, password })
}

export function reqVerifyToken() {
  const authorization = localStorage.getItem("authorization")
  return instance.post("/verifyAdmin", { authorization })
}

export function reqLogout(id) {
  return instance.post("/logout", { id })
}
